import React, { Component } from 'react'
import { NavLink } from 'react-router-dom'

export default class MyNavLink extends Component {
  render() {
    const {to, title} = this.props
    const activeClassName = ({isActive}) => isActive ? 'list-group-item peiqi' : 'list-group-item'
    return (
      <NavLink className={activeClassName} {...this.props}/>
    )
  }
}
